package com.huawei.bitfun.insight;

import org.cef.browser.CefBrowser;
import org.cef.browser.CefFrame;
import org.cef.callback.CefCallback;
import org.cef.handler.CefResourceHandler;
import org.cef.handler.CefResourceRequestHandlerAdapter;
import org.cef.network.CefRequest;

public class InsightExResourceRequestHandler extends CefResourceRequestHandlerAdapter {
    @Override
    public CefResourceHandler getResourceHandler(CefBrowser browser, CefFrame frame, CefRequest request) {
        String url = request.getURL();
        if (url == null) {
            return null;
        }
        return new InsightExResourceHandler(url);
    }
}
